using System;
using System.ComponentModel.DataAnnotations;

namespace ERP.EquipmentManage.Dtos
{
    /// <summary>
    /// 更新设备点检保养项目DTO
    /// </summary>
    public class UpdateDvsubjectDto
    {
        /// <summary>
        /// 项目编码
        /// </summary>
        [Required(ErrorMessage = "项目编码不能为空")]
        [StringLength(100, ErrorMessage = "项目编码长度不能超过100")]
        public string Subcode { get; set; } = string.Empty;

        /// <summary>
        /// 项目名称
        /// </summary>
        [Required(ErrorMessage = "项目名称不能为空")]
        [StringLength(100, ErrorMessage = "项目名称长度不能超过100")]
        public string Subname { get; set; } = string.Empty;

        /// <summary>
        /// 项目类型
        /// </summary>
        [Required(ErrorMessage = "项目类型不能为空")]
        [StringLength(100, ErrorMessage = "项目类型长度不能超过100")]
        public string Subtype { get; set; } = string.Empty;

        /// <summary>
        /// 是否启用（0：禁用，1：启用）
        /// </summary>
        public int Isdel { get; set; }

        /// <summary>
        /// 项目内容
        /// </summary>
        [StringLength(100, ErrorMessage = "项目内容长度不能超过100")]
        public string Subcontext { get; set; } = string.Empty;

        /// <summary>
        /// 标准
        /// </summary>
        [StringLength(100, ErrorMessage = "标准长度不能超过100")]
        public string Subarea { get; set; } = string.Empty;
    }
} 